package com.caissa.framework.starter.autoconfigure.instrument.aop.spring;

import com.caissa.framework.starter.autoconfigure.AspectBase;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

/**
 * Description:
 * User: forest
 * Date: 2021-01-12 11:25 上午
 */
@Aspect
public class CaissaServiceAdvise extends AspectBase {

    @Around("within(com.caissa.*.*.service.handler.*.impl.*Impl)" )
    public Object aroundMethod(ProceedingJoinPoint pjp) throws Throwable{
        return super.doCatInstrument(pjp);
    }

    @Override
    protected String getMetricType() {
        return "CaissaService(LocalTrans)";
    }
}